import {requestService} from '/src/utils/request'

// 查询分类列表
export function listCategory(query) {
    return requestService({
        url: '/xiaozhen-system/deviceCategory/list',
        method: 'get',
        params: query
    })
}


// 新增分类
export function addDeviceCategory(data) {
    return requestService({
        url: '/xiaozhen-system/deviceCategory/add',
        method: 'post',
        data: data
    })
}

// 修改分类
export function updateDeviceCategory(data) {
    return requestService({
        url: '/xiaozhen-system/deviceCategory/update',
        method: 'put',
        data: data
    })
}

// 删除分类
export function deleteDeviceCategory(categoryId) {
    return requestService({
        url: '/xiaozhen-system/deviceCategory/' + categoryId,
        method: 'delete'
    })
}
